'use strict';

import {Router} from 'express';
import * as controller from './upload.controller';
import * as auth from '../../auth/auth.service'

var router = new Router();

// router.get('/', auth.hasRole('admin'), controller.index);
// router.get('/clean', auth.hasRole('admin'), controller.clean);
// router.get('/count', auth.hasRole('admin'), controller.count);
// router.get('/:id', controller.show);
router.post('/', controller.create);
router.get('/load', controller.load);
router.get('/:id', controller.show);
//router.put('/:id', controller.update);
//router.patch('/:id', controller.update);
// router.delete('/:id', auth.hasRole('admin'), controller.destroy);

module.exports = router;
